package com.sp.service;

import java.util.List;

import com.sp.po.Dict;

public interface DictService {
	public final static int NUMBER_TEN = -10;	
	public final static int NUMBER_NINE = -9;
	
	public List<Dict> queryDictByCond(String param,int start,int length);
	/**
	 *保存字典
	 *返回false表示没有重复的记录,插入成功
	 *true则为有重复的,插入失败!
	 * @param dict
	 */
	public boolean saveDict(Dict dict);
	/**
	 * 修改字典
	 * 返回false表示有重复,更新失败
	 * true表示更新成功!
	 * @param dict
	 */
	public boolean saveOrUpdateDict(Dict dict);
	/**
	 * 删除字典
	 * @param oid
	 */
	public void deleteDict(Object oid);
}
